package models

import (
	//"gintest/database"
	"time"
)

//表结构
type OrderDelivery struct {
	OrderId  int `json:"order_id" gorm:"column:order_id" form:"order_id"`
	Name string `json:"name" gorm:"column:name" form:"name"`
	Phone string `json:"phone" gorm:"column:phone" form:"phone"`
	Address string `json:"address" gorm:"column:address" form:"address"`
	City string `json:"city" gorm:"column:city" form:"city"`
	Province string `json:"province" gorm:"column:province" form:"province"`
	Latitude string `json:"latitude" gorm:"column:latitude" form:"latitude"`
	Longitude string `json:"longitude" gorm:"column:longitude" form:"longitude"`
	CreateAt time.Time  `json:"create_at" gorm:"column:create_at;type:datetime" time_format:"2006-01-02 15:04:05" form:"create_at"`
	UpdateAt time.Time  `json:"update_at" gorm:"column:update_at;type:datetime" time_format:"2006-01-02 15:04:05" form:"update_at"`
	DeleteAt time.Time  `json:"delete_at" gorm:"column:delete_at;type:datetime" time_format:"2006-01-02 15:04:05" form:"delete_at"`
}
func (OrderDelivery) TableName() string {
	return "order_delivery"
}